sap.ui.define([
    "autofiror/base/BaseComponent",
	'sap/m/library',
	'sap/ui/model/json/JSONModel',
], function(
    BaseComponent,
	mobileLibrary,
	JSONModel,
) {
	"use strict";

	var ExpandableTextOverflowMode = mobileLibrary.ExpandableTextOverflowMode;

	return BaseComponent.extend("autofiror.reuse.form.Component", {
        /**
		 * @override
		 */
		init: function() {
			BaseComponent.prototype.init.apply(this, arguments);

			let overflowMode = {
				Popover: ExpandableTextOverflowMode.Popover,
				InPlace: ExpandableTextOverflowMode.InPlace
			}

			var oMod = new JSONModel(overflowMode);
			this.setModel(oMod, 'overflowMode');
		}
	});
});